package com.spzx.cart.service;

import com.spzx.cart.domain.CartInfo;

import java.util.List;

public interface CartService {
    void addToCart(Long skuId, Integer num);

    List<CartInfo> getCartList();

    void deleteCartBySkuId(Long skuId);

    void alertCheckCart(Long skuId, Integer isChecked);

    void alertAllCheckCart(Integer isChecked);

    void clearCart();

    List<CartInfo> getCartCheckedList(Long userId);

    Boolean updateCartPrice(Long userId);

    Boolean deleteCartCheckedList(Long userId);
}
